import { PanelDataProvider } from '../interface';

export class PanelData implements PanelDataProvider<Record<string, string>> {
  id: string;
  type: string;
  data: Record<string, string>;
  label: string;

  constructor(data: Record<string, any>) {
    this.data = data;
    this.id = data.psapppvpartid;
    this.type = data.pvparttype;
    this.label = data.psapppvpartname;
  }
}
